<?php

/**
 * Payment form.
 *
 * @package    ##PROJECT_NAME##
 * @subpackage form
 * @author     ##AUTHOR_NAME##
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class PaymentForm extends BasePaymentForm
{
  public function configure()
  {
  	
  	    unset(
      $this['created_at'],
      $this['desc'],
      $this['date_expire']
    );
  	
    
        $this->setWidgets(array(
      'id'          => new sfWidgetFormInputHidden(),
      'user_id'     => new sfWidgetFormInputHidden( array (), array ('value' => sfContext::getInstance()->getUser()->getAttribute( 'user_id', null, 'sfGuardSecurityUser' ))),
      'payment_id'  => new sfWidgetFormInputHidden( array (), array ('value' => sfContext::getInstance()->getUser()->getAttribute( 'user_id', null, 'sfGuardSecurityUser' ))),
      'level_id'    => new sfWidgetFormPropelChoice(array('model' => 'Levelpayment', 'add_empty' => false)),
      'direction'   => new sfWidgetFormInputHidden( array (), array ('value' => '1')),
      'summa'       => new sfWidgetFormInput(),
    ));
  	
    $this->widgetSchema->setNameFormat('payment[%s]');
    
  }
}
